<!--
 * @Description: 
 * @Author: chenjiaxin
 * @Date: 2022-06-12 09:04:48
 * @LastEditTime: 2022-06-12 14:30:49
 * @FilePath: \leetcode\3_链表\index.html
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>链表</title>
  </head>
  <body>
    <script src="./01_单向链表封装.js"></script>
    <script>
      var linkedList = new LinkedList();
      linkedList.append("AAA");
      linkedList.append("BBB");
      linkedList.append("CCC");

      linkedList.insert(1, "DDD");

      console.log(linkedList.toString());
      console.log(linkedList.get(3));
      console.log(linkedList.indexOf("CCC"));
      console.log(linkedList.indexOf("AAA"));
    </script>
  </body>
</html>
